package com.iterator.service.wechat.tcy;

import com.iterator.bean.wechat.tcy.CartCheckOutVO;
import com.iterator.bean.wechat.tcy.CartIndexVO;
import com.iterator.bean.wechat.tcy.CheckedBO;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.List;

/**
 * @author tean_cy
 * @date 2021/1/12 17:23
 */
public interface CartService {

    CartIndexVO index();

    int add(Integer goodsId, Integer number, Integer productId);

    int update(Integer goodsId, Integer id, Integer number, Integer productId);

    CartIndexVO delete(List<Integer> productIds);

    int goodsCount();

    CartIndexVO checked(CheckedBO checkedBO);

    int fastAdd(Integer goodsId, Integer number, Integer productId);

    CartCheckOutVO checkout(Integer cartId, Integer addressId, Integer couponId, Integer grouponRulesId);

}
